<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class DemoCategory extends Model
{
    protected $table = 'demo_categories';

    public function articles()
    {
        return $this->belongsToMany('App\Models\DemoArticle','demo_article_category','category_id','article_id');
    }
}
